package ru.amse.tsyganov.jumleditor.view;

import org.eclipse.swt.graphics.Color;
import org.eclipse.swt.graphics.GC;
import org.eclipse.swt.graphics.RGB;

import ru.amse.tsyganov.jumleditor.model.ActionState;

public class ActionStateView<T extends ActionState> extends StateView<T> {
	
	public ActionStateView(T model) {
		setModel(model);
	}
	
	@Override
	public void paint(GC gc) {
		
		if (gc == null) {
			throw new IllegalArgumentException();
		}
		
		// Stub
		final Color greenColor = new Color(null, new RGB(100, 250, 100));
		final Color blackColor = new Color(null, new RGB(0, 0, 0));
		
		gc.setBackground(greenColor);
		gc.fillRectangle(getRectangle());
		
		gc.setForeground(blackColor);
		gc.drawRectangle(getRectangle());
		// Stub end
	}
}
